package com.example.tms.mapper;

import com.example.tms.bean.DateCostInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface DateCostMapper extends JpaRepository<DateCostInfo,String>, JpaSpecificationExecutor<DateCostInfo> {

    //查询运单信息（运单id）
    @Query(value = "select * from datecost where ydid = ?1 and sfcz = true", nativeQuery = true)
    DateCostInfo findByYdid(String ydid);
}
